package recognizer;

public class AmbiguousWordException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1806062762903140879L;
	public String[] words;

	public AmbiguousWordException(String[] words) {
		super("Ambiguous writings, " + words.length + " words fit: "
				+ arrayToString(words));
		this.words = words;
	}

	private static String arrayToString(String[] words) {
		String res = "";
		for (String w : words)
			res += w + " ";
		return res;
	}
}
